# This scipt can change a block in a file.
import my_function as my
import re
# block_head is a word without = and {

game_path = ''
# region_path = '/game/map_data/state_regions/00_west_europe.txt'
# building_groups_path = '/game/common/building_groups/00_building_groups.txt'
# buildings_path = '/game/common/buildings'
error_gui_path = '/home/h/coding/game-modify/V3/error_deer.gui'

# gui
block_heads = ['flowcontainer']
for block_head in block_heads:
    file_path = game_path + error_gui_path
    my.replace_block_no_reg(file_path, block_head, '')